<form name="frmSearch" id="frmSearch" action="{$smarty.const.HOST_BACKEND}event/index" onsubmit="javascript:return actionSearch();" method="get" enctype="multipart/form-data">
	<input type="hidden" name="pcancel" id="pcancel" value="0" />
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="search">
        <tbody>
            <tr>
                <td width="20%">
                    <label for="stt">Tình trạng:</label>
                    <select name="stt" id="stt" onchange="this.form.submit();">                       	                
                       	{html_options options=$arrStatus selected=$intStatus}
                    </select>
                </td>    
                <td width="20%">
                	<label for="cate">Phân loại</label>
                    <select name="cate" id="cate">
                    	<option value="0">--Tất cả--</option>
                        {foreach item=item from=$arrCategory}
                        	<option value="{$item.categoryid}" {if isset($smarty.session.EVENT_SEARCH) && $smarty.session.EVENT_SEARCH.cate == $item.categoryid}selected="selected"{/if}>{$item.name}</option>
                        {/foreach}
                    </select>
                </td>
                <td width="20%">
                    <label for="opt">Tìm theo:</label>
                    <select name="opt" id="opt">                        
                        {if isset($smarty.session.EVENT_SEARCH)}
                            {html_options options=$arrOption selected=$smarty.session.EVENT_SEARCH.opt}
                        {else}
                            {html_options options=$arrOption}
                        {/if}
                    </select>
                </td>
                <td width="20%">
                    <label for="key">Từ khóa:</label>
                    <input type="text" name="key" id="key" value="{if isset($smarty.session.EVENT_SEARCH)}{$smarty.session.EVENT_SEARCH.key|escape}{/if}" maxlength="50"/>
                </td>                
                <td width="20%">
                    <label for="startdate">Ngày đăng:</label>
                    <input type="text" name="startdate" id="startdate" value="{if isset($smarty.session.EVENT_SEARCH)}{$smarty.session.EVENT_SEARCH.startdate|escape}{/if}" class="half first"/>
                    <input type="text" name="enddate" id="enddate" value="{if isset($smarty.session.EVENT_SEARCH)}{$smarty.session.EVENT_SEARCH.enddate|escape}{/if}" class="half"/>
                </td>  
            </tr>
            <tr>    
                <td colspan="5" align="center">
                    <button type="submit" class="search">Tìm kiếm</button>
                   	{if isset($smarty.session.EVENT_CANCEL) && $smarty.session.EVENT_CANCEL == 1} 
                    	<button type="button" onclick="javascript:cancelSearch(this.form);" class="search">Thôi tìm kiếm</button>                    {/if}
                </td>          
            </tr>                 
        </tbody>
    </table>
</form>